package org.dinnermate.menu;

import java.sql.SQLException;

import net.java.ao.Entity;
import net.java.ao.Implementation;
import net.java.ao.ManyToMany;
import net.java.ao.Preload;
import net.java.ao.schema.TableName;

import org.dinnermate.db.MapClass;

@TableName("Menu")
@Implementation(MenuImpl.class)
@MapClass(MenuToItem.class)
@Preload()
public interface Menu extends Entity
{
	public String getName();

	public void setName( String name );

	public String getNotes();

	public void setNotes( String notes );

	public int getStartDate();

	public void setStartDate( int startDate );

	public int getEndDate();

	public void setEndDate( int endDate );

	@ManyToMany(MenuToItem.class)
	public MenuItem[] getMenuItems();

	public void setMenuItems( MenuItem[] menuItems ) throws SQLException;

	public void addMenuItem( MenuItem menuItem ) throws SQLException;
	
	public void deleteMaps() throws SQLException;
}
